/*
 * Complexe.h
 *
 *  Created on: May 12, 2011
 *      Author: root
 */

#ifndef COMPLEXE_H_
#define COMPLEXE_H_
#include <iostream>
using namespace std;

class Complexe {
	float r;
	float i;
public:
	Complexe();
	Complexe(float,float);
	virtual ~Complexe();
	Complexe operator+(const Complexe &);
	Complexe operator-(const Complexe &);
	Complexe & operator=(Complexe);
	operator float(){return r;};
	friend ostream & operator<<(ostream & sortie, Complexe C);
	friend Complexe operator+(const Complexe b, const float a){Complexe g; g=b;g.r+=a;return g;}
};

#endif /* COMPLEXE_H_ */
